package cn.tedu.micro.demo.order.feign;

import cn.tedu.micro.demo.common.pojo.protocol.JsonResult;
import cn.tedu.micro.demo.common.pojo.vo.GunInfoVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name="device-service")
public interface DeviceClient {
    //订单调用device 查询枪详情
    @GetMapping("/device/gun/info/{gunId}")
    JsonResult<GunInfoVO> detail(@PathVariable Integer gunId);
}
